package org.csu.mypetstoreapi.service;


import org.csu.mypetstoreapi.common.CommonResponse;
import org.csu.mypetstoreapi.entity.Account;
import org.csu.mypetstoreapi.vo.AccountVO;

import java.util.List;

public interface AccountService {
    CommonResponse<AccountVO> getAccount(String username,String password);

    CommonResponse<AccountVO> insertAccount(AccountVO accountVO);


    public  CommonResponse<List<AccountVO>> findAllAccounts();
    public CommonResponse<AccountVO> getAccount(String username);
    public Account accountVOToAccount(AccountVO accountVO);

    public Account getAccountByUsername(String username);

}
